@echo off
cls

@echo Installing LitwareHR Sample Application
cd %1
rem Update Execution Policy to be unrestricted by default
%WINDIR%\system32\windowspowershell\v1.0\powershell -Command Set-ExecutionPolicy unrestricted
SET PATH=c:\program files\microsoft sql server\90\tools\binn;%PATH%

call  "0 - Build common tools.bat"
call  "1 - Build LitwareHR.bat"
call  "2 - Publish websites.bat"
call  "3 - Create database alias.bat"
call  "4 - Create Databases.bat"
call  "5 - Create Recruting Database Schema.bat"
call  "6 - Configure Identity Store.bat"
call  "7 - Configure Hosts.bat"
call  "8 - Setup Certificates.bat"
call  "9 - Create Provisioning User.bat"
call  "A - Configure Network Service in ADAM.bat"
call  "B - Configure IIS.bat"
call  "C - Configure Sitka.bat"
call  "D - Update Host Configuration.bat"
call  "E - Create desktop shortcuts.bat"
call  "F - Create Event Sources.bat"
call  "G - Generate ClickOncePackage.bat"

@echo Finished Installing LitwareHR Sample Application